<template>
    <div>
        {{obj.title}}
    </div>
</template>
<script>
export default {
    data(){
        return {
            obj:{
                title:'',
                url:'',
                con:''
            }
        }
    },
    created(){
        this.$http.get(`/api/detail?id=${this.$route.params.id}`).then(res => {
            console.log(res);
            if(res.data.code === 1){
                this.obj = res.data.data;
            }
        })
    }
}
</script>
